package test.project;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.ImageView;

public class NewOrderScreenActivity extends Activity{
    OnClickListener goBackActionListener = new OnClickListener() {
		
		public void onClick(View v) {
			Intent intent = new Intent(NewOrderScreenActivity.this, MainMenueActivity.class);
			NewOrderScreenActivity.this.startActivity(intent);
			
		}
	};
    OnClickListener editOrderActionListener = new OnClickListener() {
		
		public void onClick(View v) {
			Intent intent = new Intent(NewOrderScreenActivity.this, EditOrderScreenActivity.class);
			NewOrderScreenActivity.this.startActivity(intent);
			
		}
	};
    @Override
    public void onCreate(Bundle savedInstanceState) {
    	
    		super.onCreate(savedInstanceState);
    		
			setContentView(R.layout.neworderscreen);
        
    		Button backButton = (Button)findViewById(R.id.abortNewOrderButton);
    		backButton.setOnClickListener(goBackActionListener);
    		
    		Button continueButton = (Button)findViewById(R.id.continueNewOrderButton);
    		continueButton.setOnClickListener(editOrderActionListener);
    }

}
